package cn.itmantzy.user.controller;

import cn.itmantzy.user.domain.Logininfo;
import cn.itmantzy.user.service.ILogininfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/logininfo")
public class LogininfoController {

    @Autowired
    private ILogininfoService logininfoService;

    @GetMapping("/list")
    public List<Logininfo> findAll(){
        return logininfoService.queryAll();
    }

}
